package com.sca.commontest.test.designpattern.bridge.sendmessage;

/**
 * @Author: denglei
 * @Date: 2022/1/7 17:22
 * @Description:
 */
public abstract  class AbstractMessage {
    private String message;
    private SendMessage sendMessage;

    public AbstractMessage(SendMessage sendMessage,String message) {
        this.sendMessage = sendMessage;
        this.message=message;
    }


    public void send(){
        sendMessage.send(message);
    }
}
